class CommentListModel {
  int id;
  int uid;
  int dtid;
  String createtime;
  int pid;
  String text;
  String parentName;
  String memberNickname;
  String memberHead;

  CommentListModel(
      {this.id,
      this.uid,
      this.dtid,
      this.createtime,
      this.pid,
      this.text,
      this.parentName,
      this.memberNickname,
      this.memberHead});

  CommentListModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    uid = json['uid'];
    dtid = json['dtid'];
    createtime = json['createtime'];
    pid = json['pid'];
    text = json['text'];
    parentName = json['parent_name'];
    memberNickname = json['member_nickname'];
    memberHead = json['member_head'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['uid'] = this.uid;
    data['dtid'] = this.dtid;
    data['createtime'] = this.createtime;
    data['pid'] = this.pid;
    data['text'] = this.text;
    data['parent_name'] = this.parentName;
    data['member_nickname'] = this.memberNickname;
    data['member_head'] = this.memberHead;
    return data;
  }
}
